FROM ubuntu:latest


COPY entrypoint.sh /
COPY app /server/
RUN apt  update && apt -y install nodejs npm && npm install -g yarn --registry=https://registry.npm.taobao.org && yarn config set registry https://registry.npm.taobao.org -g


EXPOSE 8080
# 运行项目
ENTRYPOINT bash /entrypoint.sh